From 25673e9182d2a5869a2e22a438d9dcd83554a190 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 16 Feb 2024 13:47:49 -0800 Subject: items wip --- src/routes/(app)/[username]/(profile)/+page.svelte | 176 +++++++++++++++++---- 1 file changed, 146 insertions(+), 30 deletions(-) (limited to 'src/routes/(app)/[username]/(profile)') diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index 420cc5fa..bb98ddfe 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -1,4 +1,5 @@
{#if user?.id === subject.id} -
-
- +
+ +
+ + {#if !user.balance} +
+

+ {$t("user.welcome")} +

+ {/if} - {#if !user.balance} -
-

- {$t("user.welcome")} -

+ + {/if} + +
+ {#each items as i} +
i.quantity++} + > +
+ {i.name} + {#if user?.username === subject.username} +
+
i.quantity > 0 && i.quantity--} + > + + + +
+ +
+ {/if}
- {/if} - -
+ {/each} +
+ {#if total > 0} + + {/if} + {#if user?.username === subject.username} + {/if}
-- cgit v1.2.3